<%--
  Created by IntelliJ IDEA.
  User: zxw
  Date: 2021/3/10
  Time: 16:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>离职人员</title>
    <link  rel="stylesheet" href="layui/css/layui.css">
    <script src="layui/layui.js"></script>
</head>
<!-- L2Dwidget.js L2D网页动画人物 -->
<script src="https://eqcn.ajz.miesnfu.com/wp-content/plugins/wp-3d-pony/live2dw/lib/L2Dwidget.min.js"></script>
<script>
    L2Dwidget.init({
        "model": { "jsonPath":"https://unpkg.com/live2d-widget-model-koharu@1.0.5/assets/koharu.model.json", "scale": 1, "hHeadPos":0.5, "vHeadPos":0.618 },
        "display": { "position": "right", "width": 250, "height": 300, "hOffset":0, "vOffset": 0 },
        "mobile": { "show": true, "scale": 0.5 },
        "react": { "opacityDefault": 0.7, "opacityOnHover": 0.2 }
    });
</script>
<body>
<div style="margin: 0 43% ;color: #4E5465;font-size: 50px " >离职人员</div>

<table class="layui-hide" id="test"></table>


<script>

    layui.use(['form','jquery','layer'], function(){
        var form = layui.form;
        var $ = layui.jquery;
        var layer = layui.layer;
        table.render({
            elem: '#test'
            ,url:'${pageContext.request.contextPath}/user/query?status=0'
            ,cellMinWidth: 80 //全局定义常规单元格的最小宽度
            ,cols: [[
                {field:'id', title: 'ID', sort: true}
                ,{field:'username', title: '用户名'}
                ,{field:'address', title: '年龄', sort: true}
                ,{field:'email', title: '邮箱'}
            ]]
        });

    });
</script>
</body>
</html>
